Pain classification method